package com.ler.yrmall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ler.yrmall.member.entity.MemberReceiveAddressEntity;

import java.util.List;

/**
 * @author Leron
 */
public interface MemberReceiveAddressService extends IService<MemberReceiveAddressEntity> {

    /**
     * 收货地址列表
     * @return
     */
    List<MemberReceiveAddressEntity> memberAddressList();

    /**
     * 获取默认的收货地址列表
     * @return
     */
    MemberReceiveAddressEntity defaultAddress();

    /**
     * 保存
     * @param memberReceiveAddress
     */
    void saveAddress(MemberReceiveAddressEntity memberReceiveAddress);

    /**
     * 更新收货地址
     * @param memberReceiveAddress
     */
    void updateAddress(MemberReceiveAddressEntity memberReceiveAddress);

    /**
     * 删除地址
     * @param id
     */
    void deleteAddress(Long id);
}

